#
# Build
#
default:
	echo "default.."
clone:
	git clone https://gitee.com/build-open-source/mbedtls.git --branch=v3.4.0 --depth=1

# TODO : multi-thread build
build.lib:
	gcc -c mbedtls/library/*.c -I ./mbedtls/include/
build: build.lib
	gcc -c demo_verify_sign.c -I ./mbedtls/include/
	gcc *.o -o $(BIN)
build.quick:
	gcc -c demo_verify_sign.c -I ./mbedtls/include/
	gcc *.o -o $(BIN)
clean:
	rm -rvf ./*.o

format:
	clang-format --style=WebKit -i ./*.c ./*.h
